<table class="table table-bordered table-striped table-hover">
    <tr>
		<th>客户代码</th>
		<th>客户名称</th>
		@foreach($report_data->category_contract as $category_contract)
		<th>{{ $category_contract->name.'-金额' }}</th>
		<th>{{ $category_contract->name.'-金额(正常价)' }}</th>
		<th>{{ $category_contract->name.'-数量' }}</th>
		@endforeach

    </tr>
  @forelse($report_data->payer_array as $payer)
	<tr>
		<td>{{ $payer->code }}</td>
		<td>{{ $payer->name }}</td>
		@foreach($report_data->category_contract as $category_contract)
		<td>{{ $payer->getPayerScaleResult($category_contract->id, 'amount') }}</td>
		<td>{{ $payer->getPayerScaleResult($category_contract->id, 'normal_amount') }}</td>
		<td>{{ $payer->getPayerScaleResult($category_contract->id, 'quantity') }}</td>
		@endforeach
	</tr>
  @empty
  	<tr><td>暂无数据</td></tr>
  @endforelse

</table>